#pragma once
#ifndef __CONSOLE_H__
#define __CONSOLE_H__
#include "../util/Config.h"
#include <wchar.h>
#include <thread>
#include <mutex>
namespace WindGE
{
	class WIND_CORE_API Console
	{
	public:
		Console(void);
		~Console(void);
		void log(wchar_t const* fmt, ...);
		void log_error(wchar_t const* fmt, ...);
		void log_warning(wchar_t const* fmt, ...);
	protected:
		void loop();
		void start_loop();
	private:
		std::thread thread_;
		FILE*		file_;
	};

}

#endif	
